Change `cargo test --doc` test to match stdout
authorMikkel Kroman <mk@uplink.io>
Mon, 16 May 2016 18:56:40 +0000 (20:56 +0200)
committerMikkel Kroman <mk@uplink.io>
Mon, 16 May 2016 18:56:40 +0000 (20:56 +0200)
tests/test_cargo_test.rs

index 22b8241494f1fe62cab14e88059ceede2e5a36d7..782692a364c7c9422c2aa01ac843431ebdd887da 100644 (file)
@@ -2071,5 +2071,14 @@ test!(only_test_docs {
     p.build();
 
     assert_that(p.cargo("test").arg("--doc"),
-                execs().with_status(0));
+                execs().with_status(0).with_stdout(&format!("\
+[COMPILING] foo v0.0.1 ([..])
+[DOCTEST] foo
+
+running 1 test
+test bar_0 ... ok
+
+test result: ok.[..]
+")));
 });
+